package cn.zlp.hrm.controller;

import cn.zlp.hrm.service.IVerifyCodeService;
import cn.zlp.hrm.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @program: hrm-parent
 * @author: Mr.Zhang
 * @create: 2022-01-13 09:47
 **/
@RestController
@RequestMapping("/verifycode")
public class VerifyCodeController {

    @Autowired
    private IVerifyCodeService verifyCodeService;

    /**
     * 发送注册短信验证码
     * @param params
     * @return
     */
    @PostMapping("/registerSendSmsCode")
    public AjaxResult sendRegisterSmsCode(@RequestBody Map<String,String> params){
        return verifyCodeService.sendRegisterSmsCode(params);
    }

}
